package max.ubitest.pipe.view
{
	import max.ubitest.pipe.locators.ComponentsLocator;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class CompSelectorMediator extends Mediator
	{
		[Inject]
		public var locator:ComponentsLocator;
		[Inject]
		public var view:CompSelector;
		
		public function CompSelectorMediator()
		{
			super();
		}
		
		override public function onRegister():void{
			view.dataGroup.dataProvider = locator.components;
		}
	}
}